#include "Complex.h"
using namespace std;

int main() {
	Complex* a = new Complex(1,2);
	cout << *a<<endl;
	Complex b = *a;
	cout << b << endl;
	Complex c = b + *a;
	cout << c << endl;
	c += b;
	cout << c<<endl;
	c -= b;
	cout << c << endl;
	cout << c - b << endl;
	cout << c * b << endl;
	cout << c / b << endl;
	cout << c + (Complex)3.1 << endl;
	cout << (double)c + 3.1 << endl;
	Complex d = { 3,4 };
	cout << d << endl;
	cout << d.real() << endl;
	cout << d.imag() << endl;
	cout << d.abs() << endl;
	Complex e = d.conj();
	cout << e;
}